/*
 * Copyright (c) 2014 laidian. All Rights Reserved.
 * @author yaoyuming
 * @date  2020-03-17 17:18
 */
package com.yao.fin.enums;

import lombok.Getter;

import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * @author yaoyuming
 * @date 2020/03/17 17:18
 */
public class CourseBase {

    @Getter
    public enum ZJEnum {
        KJSW(1, "会计实务"),
        CWGL(2, "财务管理"),
        JJF(3, "经济法");

        private final int code;
        private final String desc;

        ZJEnum(int code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private static Map<Integer, String> enums = Stream.of(ZJEnum.values()).collect(Collectors.toMap(ZJEnum::getCode, ZJEnum::getDesc));

        public static String getDesc(int code){
            return enums.get(code);
        }

        public static Map<Integer, String> getEnums(){ return enums; }

    }

    @Getter
    public enum CPAEnum {
        KJ(1, "会计"),
        SJ(2, "审计"),
        SF(3, "税法"),
        JJF(4, "经济法"),
        CWCBGL(5, "财务成本管理"),
        FXGL(6, "公司战略与风险管理");

        private final int code;
        private final String desc;

        CPAEnum(int code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        private static Map<Integer, String> enums = Stream.of(CPAEnum.values()).collect(Collectors.toMap(CPAEnum::getCode, CPAEnum::getDesc));

        public static String getDesc(int code){
            return enums.get(code);
        }

        public static Map<Integer, String> getEnums(){ return enums; }

    }
}